import request from "@/router/axios";

export const getList = (current, size, params) => {
  return request({
    url: "/admin/profitsharer/page",
    method: "get",
    params: {
      ...params,
      current,
      size,
      isPromote: 1,
    },
  });
};
export const submit = (row) => {
  return request({
    url: "/admin/profitsharer/submit",
    method: "post",
    data: row,
  });
};
export const remove = (ids) => {
  return request({
    url: "/admin/profitsharer/remove",
    method: "post",
    params: { ids },
  });
};
